﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Resources/TPLOAMPage.Master" AutoEventWireup="true"
    CodeBehind="staffprofile.aspx.cs" Inherits="TPLOAWebClient.staffprofile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="navbarPHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Button ID="profileBtn" runat="server" Font-Bold="False" OnClick="profileBtn_Click"
        Text="Profile" CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="viewloaBtn" runat="server" Font-Bold="False" OnClick="viewloaBtn_Click"
        Text="View LOA Status" CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="submitloaBtn" runat="server" Font-Bold="False" OnClick="submitloaBtn_Click"
        Text="Submit LOA" CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="faqBtn" runat="server" Font-Bold="False" OnClick="faqBtn_Click" Text="FAQ"
        CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="otherservicesBtn" runat="server" Font-Bold="False" OnClick="otherservicesBtn_Click"
        Text="Other Services" CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="LogoutBtn" runat="server" Font-Bold="False" OnClick="LogoutBtn_Click"
        Text="Logout" CssClass="navbtnCSS" CausesValidation="False" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="sectionTitlePHolder" runat="server">
    Profile
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="mainContentPHolder" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="style1">
                <tr>
                    <td colspan="2">
                        <strong>Staff Profile </strong>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>StaffID </b>
                    </td>
                    <td>
                        <asp:Label ID="staffidLbl" runat="server" Text="staffidLbl"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Name* </b>
                    </td>
                    <td>
                        <asp:TextBox ID="nameTbx" runat="server" MaxLength="10"></asp:TextBox>
                        <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
                            TargetControlID="nameTbx" WatermarkCssClass="watermarked" WatermarkText="Type name here." />
                        <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server"
                            FilterType="Custom,LowercaseLetters,UppercaseLetters,Numbers" TargetControlID="nameTbx"
                            ValidChars=" " />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter a name!"
                            ControlToValidate="nameTbx" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Email* </b>
                    </td>
                    <td>
                        <asp:TextBox ID="emailTbx" runat="server" MaxLength="30"></asp:TextBox>
                        <ajaxToolkit:TextBoxWatermarkExtender ID="TBWE2" runat="server" TargetControlID="emailTbx"
                            WatermarkCssClass="watermarked" WatermarkText="Type email here." />
                        <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
                            FilterType="Custom,LowercaseLetters,UppercaseLetters,Numbers" TargetControlID="emailTbx"
                            ValidChars="@." />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please enter an email!"
                            ControlToValidate="emailTbx" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>CourseCode* </b>
                    </td>
                    <td>
                        <asp:Label ID="coursecodeLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>ApprovePermission </b>
                    </td>
                    <td>
                        <asp:Label ID="approvepermissionLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>AdminRights </b>
                    </td>
                    <td>
                        <asp:Label ID="adminrightsLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="updateBtn" runat="server" OnClick="updateBtn_Click" Text="Update"
                            CssClass="btnCSS" onclientclick="return confirm('Confirm Update?');" />
                        <asp:Label ID="retrieveLbl" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </table>
            <br />
            <strong>Change Password</strong><br />
            <table class="style1">
                <tr>
                    <td>
                        <b>Current Password* </b>
                    </td>
                    <td>
                        <asp:TextBox ID="currentTbx" runat="server" AutoPostBack="True" 
                            TextMode="Password" MaxLength="20"></asp:TextBox>
                        <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"
                            Text=" See Password" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please enter your current password"
                            ControlToValidate="currentTbx" ForeColor="Red" ValidationGroup="password"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>New Password* </b>
                    </td>
                    <td>
                        <asp:TextBox ID="newTbx" runat="server" AutoPostBack="True" TextMode="Password" 
                            MaxLength="20"></asp:TextBox>
                        <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox2_CheckedChanged"
                            Text="See Password" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please enter your new password"
                            ControlToValidate="newTbx" ForeColor="Red" ValidationGroup="password"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Confirm Password* </b>
                    </td>
                    <td>
                        <asp:TextBox ID="confirmTbx" runat="server" AutoPostBack="True" 
                            TextMode="Password" MaxLength="20"></asp:TextBox>
                        <asp:CheckBox ID="CheckBox3" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox3_CheckedChanged"
                            Text="See Password" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please enter your confirm password"
                            ControlToValidate="confirmTbx" ForeColor="Red" Display="Dynamic" ValidationGroup="password"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="newTbx"
                            ControlToValidate="confirmTbx" ErrorMessage="Your new and confirm password is not the same."
                            ForeColor="Red"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="changeBtn" runat="server" OnClick="changeBtn_Click" Text="Change"
                            ValidationGroup="password" CssClass="btnCSS" onclientclick="return confirm('Confirm Change Password?');"/>
                        <asp:Label ID="changeLbl" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
